﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using WebPaigeDesign.Utilities;

namespace EggOfPanKu.Library.Infrastructure
{
    public class LogManager
    {
        public static Logger log = new Logger(ConfigManager.AppSettingsMgr.ApplicationName, ConfigManager.AppSettingsMgr.LogPath, ConfigManager.AppSettingsMgr.LogLevel, false);

        public static void Write(Level level, string message, string section) 
        {
            log.Write((Logger.LOG_LEVEL)level, message, section);
        }

        public enum Level
        {
            NONE = -1,
            ERROR = 0,
            WARN = 1,
            INFO = 2,
            DEBUG = 3,
        }
    }
}
